<div id="box_user_panel">
    <div class="em">
    <form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string());?>">

        <div class="em"><p class="title_high"><?php echo lang('label_change_password');?></p></div>

        <div>
            <input type="password" name="old_password" id="old_password" value="<?php echo set_value('old_password');?>" required autofocus/>
            <?php echo lang('label_old_password');?>
        </div>
        <span><?php echo form_error('old_password'); ?><?php echo isset($errors['old_password'])?$errors['old_password']:''; ?></span>
        
        <div>
            <input type="password" name="new_password" id="new_password" value="<?php echo set_value('new_password');?>" maxlength="<?php echo $this->config->item('password_max_length', 'tank_auth');?>" required/>
            <?php echo lang('label_new_password');?>
        </div>
        <span><?php echo form_error('new_password'); ?><?php echo isset($errors['new_password'])?$errors['new_password']:''; ?></span>

        <div>
            <input type="password" name="confirm_new_password" id="confirm_new_password" value="<?php echo set_value('confirm_new_password');?>"maxlength="<?php echo $this->config->item('password_max_length', 'tank_auth');?>" required/>
            <label for="confirm_new_password"><?php echo lang('label_confirm_new_password');?></label>
        </div>
        <span><?php echo form_error('confirm_new_password'); ?><?php echo isset($errors['confirm_new_password'])?$errors['confirm_new_password']:''; ?></span>
    </div>
        <input type="submit" name="submit" value="<?php echo lang('label_change_password');?>" class="save_button" />

    </form>
</div>